home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr05 / att33all.zip / ALERTS.FRM < prev    next >
Text File  |  1995-02-08  |  21KB  |  694 lines

  1. VERSION 2.00
  2. Begin Form AlertsForm 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Alerts"
  6.    ClientHeight    =   4965
  7.    ClientLeft      =   8235
  8.    ClientTop       =   1920
  9.    ClientWidth     =   5070
  10.    ControlBox      =   0   'False
  11.    Height          =   5400
  12.    Left            =   8160
  13.    LinkTopic       =   "Form2"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   4965
  17.    ScaleWidth      =   5070
  18.    Top             =   1560
  19.    Width           =   5220
  20.    Begin TextBox WarningMess 
  21.       BackColor       =   &H00FFFFFF&
  22.       Height          =   312
  23.       Index           =   2
  24.       Left            =   960
  25.       MultiLine       =   -1  'True
  26.       TabIndex        =   21
  27.       Text            =   "Eek!"
  28.       Top             =   3780
  29.       Width           =   3612
  30.    End
  31.    Begin TextBox WarningMess 
  32.       BackColor       =   &H00FFFFFF&
  33.       Height          =   312
  34.       Index           =   1
  35.       Left            =   960
  36.       MultiLine       =   -1  'True
  37.       TabIndex        =   20
  38.       Text            =   "Warning:"
  39.       Top             =   3360
  40.       Width           =   3612
  41.    End
  42.    Begin TextBox WarningMess 
  43.       BackColor       =   &H00FFFFFF&
  44.       Height          =   312
  45.       Index           =   0
  46.       Left            =   960
  47.       MultiLine       =   -1  'True
  48.       TabIndex        =   19
  49.       Text            =   "OK"
  50.       Top             =   2940
  51.       Width           =   3612
  52.    End
  53.    Begin TextBox WarningVal 
  54.       Alignment       =   1  'Right Justify
  55.       BackColor       =   &H00FFFFFF&
  56.       ForeColor       =   &H00000000&
  57.       Height          =   315
  58.       Index           =   6
  59.       Left            =   3600
  60.       MultiLine       =   -1  'True
  61.       TabIndex        =   2
  62.       Text            =   "0"
  63.       Top             =   480
  64.       Width           =   972
  65.    End
  66.    Begin TextBox WarningVal 
  67.       Alignment       =   1  'Right Justify
  68.       BackColor       =   &H00FFFFFF&
  69.       ForeColor       =   &H00000000&
  70.       Height          =   315
  71.       Index           =   7
  72.       Left            =   3600
  73.       MultiLine       =   -1  'True
  74.       TabIndex        =   5
  75.       Text            =   "0"
  76.       Top             =   900
  77.       Width           =   972
  78.    End
  79.    Begin TextBox WarningVal 
  80.       Alignment       =   1  'Right Justify
  81.       BackColor       =   &H00FFFFFF&
  82.       ForeColor       =   &H00000012&
  83.       Height          =   315
  84.       Index           =   8
  85.       Left            =   3600
  86.       MultiLine       =   -1  'True
  87.       TabIndex        =   8
  88.       Text            =   "0"
  89.       Top             =   1200
  90.       Width           =   972
  91.    End
  92.    Begin TextBox WarningVal 
  93.       Alignment       =   1  'Right Justify
  94.       BackColor       =   &H00FFFFFF&
  95.       ForeColor       =   &H00000000&
  96.       Height          =   315
  97.       Index           =   9
  98.       Left            =   3600
  99.       MultiLine       =   -1  'True
  100.       TabIndex        =   11
  101.       Text            =   "0"
  102.       Top             =   1680
  103.       Width           =   972
  104.    End
  105.    Begin TextBox WarningVal 
  106.       Alignment       =   1  'Right Justify
  107.       BackColor       =   &H00FFFFFF&
  108.       ForeColor       =   &H00000000&
  109.       Height          =   315
  110.       Index           =   10
  111.       Left            =   3600
  112.       MultiLine       =   -1  'True
  113.       TabIndex        =   14
  114.       Text            =   "0"
  115.       Top             =   1980
  116.       Width           =   972
  117.    End
  118.    Begin TextBox WarningVal 
  119.       Alignment       =   1  'Right Justify
  120.       BackColor       =   &H00FFFFFF&
  121.       ForeColor       =   &H00000000&
  122.       Height          =   315
  123.       Index           =   11
  124.       Left            =   3600
  125.       MultiLine       =   -1  'True
  126.       TabIndex        =   17
  127.       Text            =   "0"
  128.       Top             =   2280
  129.       Width           =   972
  130.    End
  131.    Begin TextBox WarningVal 
  132.       Alignment       =   1  'Right Justify
  133.       BackColor       =   &H00FFFFFF&
  134.       Height          =   315
  135.       Index           =   5
  136.       Left            =   2160
  137.       MultiLine       =   -1  'True
  138.       TabIndex        =   16
  139.       Text            =   "0"
  140.       Top             =   2280
  141.       Width           =   972
  142.    End
  143.    Begin TextBox WarningVal 
  144.       Alignment       =   1  'Right Justify
  145.       BackColor       =   &H00FFFFFF&
  146.       Height          =   315
  147.       Index           =   4
  148.       Left            =   2160
  149.       MultiLine       =   -1  'True
  150.       TabIndex        =   13
  151.       Text            =   "0"
  152.       Top             =   1980
  153.       Width           =   972
  154.    End
  155.    Begin TextBox WarningVal 
  156.       Alignment       =   1  'Right Justify
  157.       BackColor       =   &H00FFFFFF&
  158.       Height          =   315
  159.       Index           =   3
  160.       Left            =   2160
  161.       MultiLine       =   -1  'True
  162.       TabIndex        =   10
  163.       Text            =   "0"
  164.       Top             =   1680
  165.       Width           =   972
  166.    End
  167.    Begin TextBox WarningVal 
  168.       Alignment       =   1  'Right Justify
  169.       BackColor       =   &H00FFFFFF&
  170.       Height          =   315
  171.       Index           =   2
  172.       Left            =   2160
  173.       MultiLine       =   -1  'True
  174.       TabIndex        =   7
  175.       Text            =   "0"
  176.       Top             =   1200
  177.       Width           =   972
  178.    End
  179.    Begin TextBox WarningVal 
  180.       Alignment       =   1  'Right Justify
  181.       BackColor       =   &H00FFFFFF&
  182.       Height          =   315
  183.       Index           =   1
  184.       Left            =   2160
  185.       MultiLine       =   -1  'True
  186.       TabIndex        =   4
  187.       Text            =   "0"
  188.       Top             =   900
  189.       Width           =   972
  190.    End
  191.    Begin TextBox WarningVal 
  192.       Alignment       =   1  'Right Justify
  193.       BackColor       =   &H00FFFFFF&
  194.       ForeColor       =   &H00000000&
  195.       Height          =   315
  196.       Index           =   0
  197.       Left            =   2160
  198.       MultiLine       =   -1  'True
  199.       TabIndex        =   1
  200.       Text            =   "0"
  201.       Top             =   480
  202.       Width           =   972
  203.    End
  204.    Begin SSCheck Check3D1 
  205.       Caption         =   "&GDI"
  206.       ForeColor       =   &H00000000&
  207.       Height          =   315
  208.       Index           =   5
  209.       Left            =   480
  210.       TabIndex        =   15
  211.       Top             =   2256
  212.       Width           =   732
  213.    End
  214.    Begin SSCheck Check3D1 
  215.       Caption         =   "&Memory"
  216.       ForeColor       =   &H00000000&
  217.       Height          =   315
  218.       Index           =   1
  219.       Left            =   480
  220.       TabIndex        =   3
  221.       Top             =   900
  222.       Width           =   1080
  223.    End
  224.    Begin SSCheck Check3D1 
  225.       Caption         =   "&Resources"
  226.       ForeColor       =   &H00000000&
  227.       Height          =   315
  228.       Index           =   3
  229.       Left            =   480
  230.       TabIndex        =   9
  231.       Top             =   1656
  232.       Width           =   1215
  233.    End
  234.    Begin SSCheck Check3D1 
  235.       Caption         =   "Dis&k Space"
  236.       ForeColor       =   &H00000000&
  237.       Height          =   315
  238.       Index           =   0
  239.       Left            =   480
  240.       TabIndex        =   0
  241.       Top             =   480
  242.       Width           =   1212
  243.    End
  244.    Begin SSCheck Check3D1 
  245.       Caption         =   "Largest &B-lock"
  246.       ForeColor       =   &H00000000&
  247.       Height          =   315
  248.       Index           =   2
  249.       Left            =   480
  250.       TabIndex        =   6
  251.       Top             =   1200
  252.       Width           =   1545
  253.    End
  254.    Begin SSCheck Check3D1 
  255.       Caption         =   "&User"
  256.       ForeColor       =   &H00000000&
  257.       Height          =   315
  258.       Index           =   4
  259.       Left            =   480
  260.       TabIndex        =   12
  261.       Top             =   1956
  262.       Width           =   780
  263.    End
  264.    Begin CommandButton Command3 
  265.       Cancel          =   -1  'True
  266.       Caption         =   "Cancel"
  267.       Height          =   330
  268.       Left            =   2640
  269.       TabIndex        =   23
  270.       Top             =   4368
  271.       Width           =   1215
  272.    End
  273.    Begin CommandButton Command1 
  274.       Caption         =   "OK"
  275.       Default         =   -1  'True
  276.       Height          =   330
  277.       Left            =   1200
  278.       TabIndex        =   22
  279.       Top             =   4380
  280.       Width           =   1215
  281.    End
  282.    Begin Image Image1 
  283.       Height          =   252
  284.       Index           =   2
  285.       Left            =   0
  286.       Top             =   0
  287.       Visible         =   0   'False
  288.       Width           =   252
  289.    End
  290.    Begin Image Image1 
  291.       Height          =   252
  292.       Index           =   5
  293.       Left            =   480
  294.       Top             =   2940
  295.       Width           =   252
  296.    End
  297.    Begin Image Image1 
  298.       Height          =   252
  299.       Index           =   4
  300.       Left            =   480
  301.       Top             =   3780
  302.       Width           =   240
  303.    End
  304.    Begin Image Image1 
  305.       Height          =   252
  306.       Index           =   3
  307.       Left            =   480
  308.       Top             =   3360
  309.       Width           =   240
  310.    End
  311.    Begin Label Label2 
  312.       AutoSize        =   -1  'True
  313.       BackColor       =   &H00C0C0C0&
  314.       BackStyle       =   0  'Transparent
  315.       Caption         =   "&Legend"
  316.       Height          =   192
  317.       Index           =   15
  318.       Left            =   480
  319.       TabIndex        =   18
  320.       Top             =   2700
  321.       Width           =   636
  322.    End
  323.    Begin Label Label2 
  324.       AutoSize        =   -1  'True
  325.       BackColor       =   &H00C0C0C0&
  326.       BackStyle       =   0  'Transparent
  327.       Caption         =   "%"
  328.       Height          =   192
  329.       Index           =   13
  330.       Left            =   4596
  331.       TabIndex        =   37
  332.       Top             =   2340
  333.       Width           =   168
  334.    End
  335.    Begin Label Label2 
  336.       AutoSize        =   -1  'True
  337.       BackColor       =   &H00C0C0C0&
  338.       BackStyle       =   0  'Transparent
  339.       Caption         =   "%"
  340.       Height          =   192
  341.       Index           =   12
  342.       Left            =   4596
  343.       TabIndex        =   36
  344.       Top             =   2040
  345.       Width           =   168
  346.    End
  347.    Begin Label Label2 
  348.       AutoSize        =   -1  'True
  349.       BackColor       =   &H00C0C0C0&
  350.       BackStyle       =   0  'Transparent
  351.       Caption         =   "%"
  352.       Height          =   192
  353.       Index           =   11
  354.       Left            =   4596
  355.       TabIndex        =   35
  356.       Top             =   1740
  357.       Width           =   168
  358.    End
  359.    Begin Label Label2 
  360.       AutoSize        =   -1  'True
  361.       BackColor       =   &H00C0C0C0&
  362.       BackStyle       =   0  'Transparent
  363.       Caption         =   "k"
  364.       Height          =   192
  365.       Index           =   10
  366.       Left            =   4596
  367.       TabIndex        =   34
  368.       Top             =   1260
  369.       Width           =   108
  370.    End
  371.    Begin Label Label2 
  372.       AutoSize        =   -1  'True
  373.       BackColor       =   &H00C0C0C0&
  374.       BackStyle       =   0  'Transparent
  375.       Caption         =   "k"
  376.       Height          =   192
  377.       Index           =   9
  378.       Left            =   4596
  379.       TabIndex        =   33
  380.       Top             =   960
  381.       Width           =   108
  382.    End
  383.    Begin Label Label2 
  384.       AutoSize        =   -1  'True
  385.       BackColor       =   &H00C0C0C0&
  386.       BackStyle       =   0  'Transparent
  387.       Caption         =   "k"
  388.       Height          =   192
  389.       Index           =   8
  390.       Left            =   4596
  391.       TabIndex        =   32
  392.       Top             =   540
  393.       Width           =   108
  394.    End
  395.    Begin Label Label2 
  396.       AutoSize        =   -1  'True
  397.       BackColor       =   &H00C0C0C0&
  398.       BackStyle       =   0  'Transparent
  399.       Caption         =   "%"
  400.       Height          =   192
  401.       Index           =   7
  402.       Left            =   3156
  403.       TabIndex        =   31
  404.       Top             =   2340
  405.       Width           =   168
  406.    End
  407.    Begin Label Label2 
  408.       AutoSize        =   -1  'True
  409.       BackColor       =   &H00C0C0C0&
  410.       BackStyle       =   0  'Transparent
  411.       Caption         =   "%"
  412.       Height          =   192
  413.       Index           =   6
  414.       Left            =   3156
  415.       TabIndex        =   30
  416.       Top             =   2040
  417.       Width           =   168
  418.    End
  419.    Begin Label Label2 
  420.       AutoSize        =   -1  'True
  421.       BackColor       =   &H00C0C0C0&
  422.       BackStyle       =   0  'Transparent
  423.       Caption         =   "%"
  424.       Height          =   192
  425.       Index           =   5
  426.       Left            =   3156
  427.       TabIndex        =   29
  428.       Top             =   1740
  429.       Width           =   168
  430.    End
  431.    Begin Label Label2 
  432.       AutoSize        =   -1  'True
  433.       BackColor       =   &H00C0C0C0&
  434.       BackStyle       =   0  'Transparent
  435.       Caption         =   "k"
  436.       Height          =   192
  437.       Index           =   4
  438.       Left            =   3156
  439.       TabIndex        =   28
  440.       Top             =   1260
  441.       Width           =   108
  442.    End
  443.    Begin Label Label2 
  444.       AutoSize        =   -1  'True
  445.       BackColor       =   &H00C0C0C0&
  446.       BackStyle       =   0  'Transparent
  447.       Caption         =   "k"
  448.       Height          =   192
  449.       Index           =   3
  450.       Left            =   3156
  451.       TabIndex        =   27
  452.       Top             =   960
  453.       Width           =   108
  454.    End
  455.    Begin Label Label2 
  456.       AutoSize        =   -1  'True
  457.       BackColor       =   &H00C0C0C0&
  458.       BackStyle       =   0  'Transparent
  459.       Caption         =   "k"
  460.       Height          =   192
  461.       Index           =   2
  462.       Left            =   3156
  463.       TabIndex        =   26
  464.       Top             =   540
  465.       Width           =   108
  466.    End
  467.    Begin Label Label2 
  468.       AutoSize        =   -1  'True
  469.       BackColor       =   &H00C0C0C0&
  470.       BackStyle       =   0  'Transparent
  471.       Caption         =   "Alert"
  472.       Height          =   192
  473.       Index           =   1
  474.       Left            =   4080
  475.       TabIndex        =   24
  476.       Top             =   240
  477.       Width           =   396
  478.    End
  479.    Begin Label Label2 
  480.       AutoSize        =   -1  'True
  481.       BackColor       =   &H00C0C0C0&
  482.       BackStyle       =   0  'Transparent
  483.       Caption         =   "Warning"
  484.       Height          =   192
  485.       Index           =   0
  486.       Left            =   2400
  487.       TabIndex        =   25
  488.       Top             =   240
  489.       Width           =   492
  490.    End
  491.    Begin Image Image1 
  492.       Height          =   252
  493.       Index           =   1
  494.       Left            =   3840
  495.       Top             =   240
  496.       Width           =   240
  497.    End
  498.    Begin Image Image1 
  499.       Height          =   252
  500.       Index           =   0
  501.       Left            =   2160
  502.       Top             =   240
  503.       Width           =   252
  504.    End
  505. End
  506. Option Explicit
  507.  
  508. Sub Check3D1_Click (Index As Integer, Value As Integer)
  509. WarningVal(Index).Enabled = Value
  510. WarningVal(Index + gAlertItems).Enabled = Value
  511. If Value Then
  512.    WarningVal(Index).ForeColor = 0
  513.    WarningVal(Index + gAlertItems).ForeColor = 0
  514. Else
  515.    WarningVal(Index).ForeColor = &HC0C0C0
  516.    WarningVal(Index + gAlertItems).ForeColor = &HC0C0C0
  517. End If
  518. If Index = 1 Then
  519.    Check3d1(2).Enabled = Value
  520.    If Value And Check3d1(2).Value Then
  521.       WarningVal(2).ForeColor = 0
  522.       WarningVal(2 + gAlertItems).ForeColor = 0
  523.    Else
  524.       WarningVal(2).ForeColor = &HC0C0C0
  525.       WarningVal(2 + gAlertItems).ForeColor = &HC0C0C0
  526.    End If
  527. End If
  528.  
  529. If Index = 3 Then
  530.    Check3d1(4).Enabled = Not Value
  531.    Check3d1(5).Enabled = Not Value
  532.    If Value Then
  533.       Check3d1(4).Value = False
  534.       Check3d1(5).Value = False
  535.    End If
  536. End If
  537.  
  538. End Sub
  539.  
  540. Sub Command1_Click ()
  541. Dim I%, J%
  542. 'ok
  543.  
  544. For I% = 0 To gAlertItems * 2 - 1
  545.    Call Refm(I%, True)
  546. Next I%
  547.  
  548. For I% = 0 To gAlertItems - 1
  549.    If Check3d1(I%).Value And Check3d1(I%).Enabled Then
  550.       If Val(WarningVal(I%).Text) < Val(WarningVal(I% + gAlertItems).Text) Then
  551.          MsgBox "Alert value is greater then warning value", 48
  552.          WarningVal(I%).SetFocus
  553.          Exit Sub
  554.       End If
  555.    End If
  556. Next I%
  557.  
  558. For I% = 0 To gAlertItems - 1
  559. For J% = 0 To 1
  560.       gWarningLevels(I%, J%) = Val(WarningVal(I% + (J% * gAlertItems)).Text)
  561. Next J%
  562. Next I%
  563.  
  564. For I% = 0 To gAlertItems - 1
  565.     gWarning(I%) = Check3d1(I%).Value And Check3d1(I%).Enabled
  566. Next I%
  567.  
  568. For J% = 0 To 2
  569.     gWarningMessages(J%) = WarningMess(J%).Text
  570. Next J%
  571.  
  572.  
  573. Unload Me
  574. End Sub
  575.  
  576. Sub Command3_Click ()
  577.    'Cancel
  578.    Unload Me
  579. End Sub
  580.  
  581. Sub Form_Load ()
  582. Dim T$
  583. Dim I%
  584. Dim J%
  585.  
  586. For I% = 0 To gAlertItems - 1
  587.    Check3d1(I%).Value = True
  588. Next I%
  589. For I% = 0 To gAlertItems - 1
  590.    Check3d1(I%).Value = False
  591. Next I%
  592.  
  593.    Image1(0).Picture = AllTheTime.MoonSun.GraphicCell(44)
  594.    Image1(1).Picture = AllTheTime.MoonSun.GraphicCell(49)
  595.    Image1(2).Picture = AllTheTime.MoonSun.GraphicCell(43)
  596.    
  597.    For I% = 0 To 2
  598.       T$ = Label2(I%).Caption
  599.       Label2(I%).Caption = ""  'autosize?
  600.       Label2(I%).Caption = T$  'autosize?
  601.       WarningMess(I%).Text = gWarningMessages(I%)
  602.       Image1(I% + 3).Picture = Image1(I%).Picture
  603.    Next I%
  604.  
  605.    'Label2(1).Caption = Label2(1).Caption
  606.    Label2(0).Left = WarningVal(0).Left + WarningVal(0).Width - Label2(0).Width
  607.    Label2(1).Left = WarningVal(gAlertItems).Left + WarningVal(gAlertItems).Width - Label2(1).Width
  608.    Image1(0).Left = Label2(0).Left - Image1(0).Width - 30
  609.    Image1(1).Left = Label2(1).Left - Image1(1).Width - 30
  610.  
  611.    'Image1(2).Left = Check3d1(1).Left
  612.    'Label2(2).Left = Image1(2).Left + Image1(2).Width + 30
  613.    'Image1(2).Top = Image1(0).Top
  614.    'If Label2(0).Left + Label2(0).Width + 120 > Image1(1).Left Then
  615.    '   Image1(1).Left = Label2(0).Left + Label2(0).Width + 120
  616.    '   Label2(1).Left = Image1(1).Left + Image1(1).Width
  617.    'End If
  618.    ''Image1(0).BorderStyle = 1
  619.    ''Image1(1).BorderStyle = 1
  620.    ''Label2(0).FontSize = 24
  621.    Label2(0).Top = Image1(0).Top + (Image1(0).Height - Label2(0).Height) \ 2
  622.    Label2(1).Top = Image1(1).Top + (Image1(1).Height - Label2(1).Height) \ 2
  623.    'Label2(2).Top = Image1(2).Top + (Image1(2).Height - Label2(2).Height) \ 2
  624.  
  625.    Image1(5).Top = WarningMess(0).Top + (WarningMess(0).Height - Image1(5).Height) \ 2
  626.    WarningMess(0).Left = Image1(5).Left + Image1(5).Width + 30
  627.    Image1(3).Top = WarningMess(1).Top + (WarningMess(1).Height - Image1(3).Height) \ 2
  628.    WarningMess(1).Left = Image1(3).Left + Image1(3).Width + 30
  629.    Image1(4).Top = WarningMess(2).Top + (WarningMess(2).Height - Image1(4).Height) \ 2
  630.    WarningMess(2).Left = Image1(4).Left + Image1(4).Width + 30
  631.  
  632.    WarningMess(0).Width = (WarningVal(gAlertItems).Left + WarningVal(gAlertItems).Width) - WarningMess(0).Left
  633.    WarningMess(1).Width = WarningMess(0).Width
  634.    WarningMess(2).Width = WarningMess(0).Width
  635.    
  636.    AlertsForm.Left = Screen.Width / 2 - (AlertsForm.Width / 2)
  637.    AlertsForm.Top = Screen.Height / 2 - (AlertsForm.Height / 2)
  638.  
  639. For I% = 0 To gAlertItems - 1
  640. For J% = 0 To 1
  641.       WarningVal(I% + (J% * gAlertItems)).Text = gWarningLevels(I%, J%)
  642. Next J%
  643. Next I%
  644.  
  645. For I% = 0 To gAlertItems * 2 - 1
  646.    Call Refm(I%, False)
  647. Next I%
  648.  
  649. For I% = 0 To gAlertItems - 1
  650.    Check3d1(I%).Value = gWarning(I%)
  651. Next I%
  652.  
  653. End Sub
  654.  
  655. Sub Refm (Index As Integer, gf As Integer)
  656.    Select Case Index
  657.       Case 0, 1, 2, 0 + gAlertItems, 1 + gAlertItems, 2 + gAlertItems:
  658.          If gf Then
  659.             WarningVal(Index).Text = Format$(WarningVal(Index).Text, "general number")
  660.          Else
  661.             WarningVal(Index).Text = Format$(WarningVal(Index).Text, "#,##0")
  662.          End If
  663.       Case 3, 4, 5, 3 + gAlertItems, 4 + gAlertItems, 5 + gAlertItems:
  664.          If WarningVal(Index).Text > 100 Then WarningVal(Index).Text = 100
  665.          If gf Then
  666.             WarningVal(Index).Text = Format$(WarningVal(Index).Text, "general number")
  667.          Else
  668.             WarningVal(Index).Text = Format$(WarningVal(Index).Text, "#,##0")
  669.          End If
  670.    End Select
  671.  
  672. End Sub
  673.  
  674. Sub WarningMess_GotFocus (Index As Integer)
  675. WarningMess(Index).SelStart = 0
  676. WarningMess(Index).SelLength = 30000
  677.  
  678. End Sub
  679.  
  680. Sub WarningVal_GotFocus (Index As Integer)
  681. Call Refm(Index, True)
  682. WarningVal(Index).SelStart = 0
  683. WarningVal(Index).SelLength = 30000
  684. End Sub
  685.  
  686. Sub WarningVal_KeyPress (Index As Integer, KeyAscii As Integer)
  687. If ((Chr$(KeyAscii) < "0") Or (Chr$(KeyAscii) > "9")) And (Chr$(KeyAscii) <> ",") And (KeyAscii <> 8) Then KeyAscii = 0
  688. End Sub
  689.  
  690. Sub WarningVal_LostFocus (Index As Integer)
  691. Call Refm(Index, False)
  692. End Sub
  693.  
  694.